import request from "../util/request";

//创建广告
export function CreateAd (params) {
    return request({
        url : '/ad/create',
        method :'post',
        params
    })
}

//获取我的广告
export function GetUserAds (params) {
    return request({
        url : '/ad/user',
        method :'post',
        params
    })
}

//上下架广告
export function ChangeAdStatus (params) {
    return request({
        url : '/ad/status',
        method :'post',
        params
    })
}

//获取广告详情
export function GetAdDetail (params) {
    return request({
        url : '/ad/detail',
        method :'post',
        params
    })
}

//更新广告
export function UpdateAd (params) {
    return request({
        url : '/ad/update',
        method :'post',
        params
    })
}

//获取广告列表
export function GetAdList (params) {
    return request({
        url : '/ad/index',
        method :'post',
        params
    })
}

//广告下单
export function CreateTradeOrder (params) {
    return request({
        url : '/trade/create',
        method :'post',
        params
    })
}

//获取汇率
export function GetRate(params) {
    return request({
        url : '/utility/currency',
        method :'post',
        params
    })
}